﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>115网盘 查询器</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
  <script type="text/javascript" src="/selectivizr-min.js"></script>
<![endif]--> 



<script type="text/javascript">

		

var URIlabel = "请输入网址或提取码";

$(document).ready(function(){
	$("#115URI").blur(function(){
		if(this.value == '') this.value=URIlabel;
		});
	$("#115URI").focus(function(){
		if(this.value == URIlabel) this.value='';
		});
	$("#115URIbotton").click(function(){
		var pickcode = $("#115URI").attr("value");
		pickcode = pickcode.replace("http://u.115.com/file/","");
		pickcode = pickcode.replace("u.115.com/file/","");
		
		$.getJSON("/api/"+pickcode,function(data){
					if(data.state==false)
					{
						alert(data.message);
						return;
					}
					$("#filename").html(data.filename);
					$("#sha").html(data.sha);
					$("#downURL1").html(data.urls[0]);
					$("#downURL2").html(data.urls[1]);
											}
										);
		});
});
</script>
<link href="base.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wapper">
	<div id="toplogo">115网盘信息查询</div>
    <div class="box">
    请在下方输入115网盘的提取码或提取页面网址
    	<div class="lin"></div>
        <form>
          	<fieldset>
            <input id="115URIbotton" class="submit" type="botton"  value="给我分析" />
            <input id="115URI" class="url" value="" size="40" maxlength="200" name="url" />
            </fieldset>
        </form>
        </div>
        <div id="resultbox" class="box">
        	网盘信息
            <div class="lin"></div>
            <table class="file-form" >
                  <thead>
                  <tr>
                    <th scope="col" width="20%" >名称&nbsp;</th>
                    <th scope="col" width="80%">值&nbsp;</th>
                  </tr>
                  </thead>
                  <tbody>
                  <tr>
                    <td>文件名&nbsp;</td>
                    <td id="filename">&nbsp;</td>
                  </tr>
                  <tr>
                    <td>sha1&nbsp;</td>
                    <td id="sha">&nbsp;</td>
                  </tr>
                  <tr>
                    <td>下载地址1&nbsp;</td>
                    <td id="downURL1">&nbsp;</td>
                  </tr>
                   <tr>
                    <td>下载地址2&nbsp;</td>
                    <td id="downURL2">&nbsp;</td>
                  </tr>
                  </tbody>
                </table>
		</div>
        <div id="footer" class="box">
			<span style="color:red">coding:<a href="blog.ifancc.com">fancycode</a>.</span>Contact fancycode at gmail.com for more detail  <noscritp><a href="http://www.51.la/?5012927" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/5012927.asp" style="border:none" /></a></noscript>
		</div> 

        
</div>

</body>
</html>
